Skip to main content

Token Denoms

Queries the available token denoms for the specified token Id on the specified chains.

query Token_denoms($denom: String, $tokenId: String, $chainUid: [String!]) {
token {
token_denoms(denom: $denom, token_id: $tokenId, chain_uid: $chainUid) {
denoms {
chain_uid
token_type {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
token_id
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://devnet-testing.api.euclidprotocol.com/graphql' \
--data '{"query":"query Token_denoms($denom: String, $tokenId: String, $chainUid: [String!]) {\n token {\n token_denoms(denom: $denom, token_id: $tokenId, chain_uid: $chainUid) {\n denoms {\n chain_uid\n token_type {\n ... on NativeTokenType {\n native {\n denom\n }\n }\n ... on SmartTokenType {\n smart {\n contract_address\n }\n }\n ... on VoucherTokenType {\n voucher\n }\n }\n }\n token_id\n }\n }\n}","variables":{"denom":null,"tokenId":"usdc","chainUid":"injective"}}'

Open in Playground

Arguments

  • denom (String): Optional filter to match a specific token denomination. Can be either the denom for native tokens or contract address for smart tokens.
  • tokenId (String): Optional filter to match a specific token identifier.
  • chainUid ([String!]): Optional list of chain UIDs to filter the token denoms by chain.

Return Fields

FieldTypeDescription
tokenIdStringThe unique identifier for the token.
chain_uid[String]The chain UID where the token is available.
nativeNativeDetails of the native tokens (Denoms).
smartSmartDetails of the CW20 tokens (Contract addresses).
voucherStringDetails about the Voucher token.
FieldTypeDescription
nativeNativeDetails of the native tokens (Denoms).
smartSmartDetails of the CW20 tokens (Contract addresses).
voucherStringDetails about the Voucher token.

Native

FieldTypeDescription
denomStringThe denomination of the native token.

Smart

FieldTypeDescription
contractAddressStringThe contract address of the smart token.